package battle.cmd
{
	import battle.BaseObject;
	import battle.Character;
	
	public class MoveLeftExecutor extends AbstractCharacterExecutor
	{
		public function MoveLeftExecutor()
		{
			
		}
		
		public function execute( context:*, target:BaseObject ):void
		{
			super( context, target );
			
			var character:Character = Character( target );
			
			character.move( character.pos.x - 1, character.pos.y );
			
		}
		
		public function undo( context:*, target:BaseObject ):void
		{
			super( context, target );
			
			var character:Character = Character( target );
			
			character.move( character.pos.x + 1, character.pos.y );
			
		}
		
	}
}